package com.xt.dao;

import com.xt.bean.StudentAttendance;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by XT on 2018/5/3.
 */
public interface StudentAttendanceRepository extends MongoRepository<StudentAttendance,String> {

    Page<StudentAttendance> findByCourseIdLikeAndTeacherIdLikeAndClassIdLike(
            String courseId,
            String teacherId,
            String classId,
            Pageable pageable);

    Page<StudentAttendance> findByStudentIdLikeAndCourseIdLikeAndTeacherIdLikeAndClassIdLikeAndStudentSchoolNumberLikeAndStudentNameLike(
            String studentId,
            String courseId,
            String teacherId,
            String classId,
            String studentSchoolNumber,
            String studentName,
            Pageable pageable);


}
